package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/login", Login)
	}
	patient := r.Group("/patient")
	{
		patient.Use(jwt.JWTAuth("2210a"))
		patient.POST("/List", PatientList)
		patient.POST("/show", PatientShow)
	}
	r.POST("/upload", Upload)
}
